
/* First created by JCasGen Wed Apr 22 20:22:27 UYT 2009 */
package org.idtem.component.freeling;

import org.apache.uima.jcas.JCas;
import org.apache.uima.jcas.JCasRegistry;
import org.apache.uima.cas.impl.CASImpl;
import org.apache.uima.cas.impl.FSGenerator;
import org.apache.uima.cas.FeatureStructure;
import org.apache.uima.cas.impl.TypeImpl;
import org.apache.uima.cas.Type;
import org.apache.uima.cas.impl.FeatureImpl;
import org.apache.uima.cas.Feature;
import org.apache.uima.jcas.tcas.Annotation_Type;

/** 
 * Updated by JCasGen Mon Nov 09 22:28:24 UYST 2009
 * @generated */
public class Verbo_Type extends Freeling2_Type {
  /** @generated */
  protected FSGenerator getFSGenerator() {return fsGenerator;}
  /** @generated */
  private final FSGenerator fsGenerator = 
    new FSGenerator() {
      public FeatureStructure createFS(int addr, CASImpl cas) {
  			 if (Verbo_Type.this.useExistingInstance) {
  			   // Return eq fs instance if already created
  		     FeatureStructure fs = Verbo_Type.this.jcas.getJfsFromCaddr(addr);
  		     if (null == fs) {
  		       fs = new Verbo(addr, Verbo_Type.this);
  			   Verbo_Type.this.jcas.putJfsFromCaddr(addr, fs);
  			   return fs;
  		     }
  		     return fs;
        } else return new Verbo(addr, Verbo_Type.this);
  	  }
    };
  /** @generated */
  public final static int typeIndexID = Verbo.typeIndexID;
  /** @generated 
     @modifiable */
  public final static boolean featOkTst = JCasRegistry.getFeatOkTst("org.idtem.component.freeling.Verbo");
 
  /** @generated */
  final Feature casFeat_Tipo;
  /** @generated */
  final int     casFeatCode_Tipo;
  /** @generated */ 
  public String getTipo(int addr) {
        if (featOkTst && casFeat_Tipo == null)
      jcas.throwFeatMissing("Tipo", "org.idtem.component.freeling.Verbo");
    return ll_cas.ll_getStringValue(addr, casFeatCode_Tipo);
  }
  /** @generated */    
  public void setTipo(int addr, String v) {
        if (featOkTst && casFeat_Tipo == null)
      jcas.throwFeatMissing("Tipo", "org.idtem.component.freeling.Verbo");
    ll_cas.ll_setStringValue(addr, casFeatCode_Tipo, v);}
    
  
 
  /** @generated */
  final Feature casFeat_Modo;
  /** @generated */
  final int     casFeatCode_Modo;
  /** @generated */ 
  public String getModo(int addr) {
        if (featOkTst && casFeat_Modo == null)
      jcas.throwFeatMissing("Modo", "org.idtem.component.freeling.Verbo");
    return ll_cas.ll_getStringValue(addr, casFeatCode_Modo);
  }
  /** @generated */    
  public void setModo(int addr, String v) {
        if (featOkTst && casFeat_Modo == null)
      jcas.throwFeatMissing("Modo", "org.idtem.component.freeling.Verbo");
    ll_cas.ll_setStringValue(addr, casFeatCode_Modo, v);}
    
  
 
  /** @generated */
  final Feature casFeat_Tiempo;
  /** @generated */
  final int     casFeatCode_Tiempo;
  /** @generated */ 
  public String getTiempo(int addr) {
        if (featOkTst && casFeat_Tiempo == null)
      jcas.throwFeatMissing("Tiempo", "org.idtem.component.freeling.Verbo");
    return ll_cas.ll_getStringValue(addr, casFeatCode_Tiempo);
  }
  /** @generated */    
  public void setTiempo(int addr, String v) {
        if (featOkTst && casFeat_Tiempo == null)
      jcas.throwFeatMissing("Tiempo", "org.idtem.component.freeling.Verbo");
    ll_cas.ll_setStringValue(addr, casFeatCode_Tiempo, v);}
    
  
 
  /** @generated */
  final Feature casFeat_Persona;
  /** @generated */
  final int     casFeatCode_Persona;
  /** @generated */ 
  public String getPersona(int addr) {
        if (featOkTst && casFeat_Persona == null)
      jcas.throwFeatMissing("Persona", "org.idtem.component.freeling.Verbo");
    return ll_cas.ll_getStringValue(addr, casFeatCode_Persona);
  }
  /** @generated */    
  public void setPersona(int addr, String v) {
        if (featOkTst && casFeat_Persona == null)
      jcas.throwFeatMissing("Persona", "org.idtem.component.freeling.Verbo");
    ll_cas.ll_setStringValue(addr, casFeatCode_Persona, v);}
    
  
 
  /** @generated */
  final Feature casFeat_Numero;
  /** @generated */
  final int     casFeatCode_Numero;
  /** @generated */ 
  public String getNumero(int addr) {
        if (featOkTst && casFeat_Numero == null)
      jcas.throwFeatMissing("Numero", "org.idtem.component.freeling.Verbo");
    return ll_cas.ll_getStringValue(addr, casFeatCode_Numero);
  }
  /** @generated */    
  public void setNumero(int addr, String v) {
        if (featOkTst && casFeat_Numero == null)
      jcas.throwFeatMissing("Numero", "org.idtem.component.freeling.Verbo");
    ll_cas.ll_setStringValue(addr, casFeatCode_Numero, v);}
    
  
 
  /** @generated */
  final Feature casFeat_Genero;
  /** @generated */
  final int     casFeatCode_Genero;
  /** @generated */ 
  public String getGenero(int addr) {
        if (featOkTst && casFeat_Genero == null)
      jcas.throwFeatMissing("Genero", "org.idtem.component.freeling.Verbo");
    return ll_cas.ll_getStringValue(addr, casFeatCode_Genero);
  }
  /** @generated */    
  public void setGenero(int addr, String v) {
        if (featOkTst && casFeat_Genero == null)
      jcas.throwFeatMissing("Genero", "org.idtem.component.freeling.Verbo");
    ll_cas.ll_setStringValue(addr, casFeatCode_Genero, v);}
    
  



  /** initialize variables to correspond with Cas Type and Features
	* @generated */
  public Verbo_Type(JCas jcas, Type casType) {
    super(jcas, casType);
    casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());

 
    casFeat_Tipo = jcas.getRequiredFeatureDE(casType, "Tipo", "uima.cas.String", featOkTst);
    casFeatCode_Tipo  = (null == casFeat_Tipo) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_Tipo).getCode();

 
    casFeat_Modo = jcas.getRequiredFeatureDE(casType, "Modo", "uima.cas.String", featOkTst);
    casFeatCode_Modo  = (null == casFeat_Modo) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_Modo).getCode();

 
    casFeat_Tiempo = jcas.getRequiredFeatureDE(casType, "Tiempo", "uima.cas.String", featOkTst);
    casFeatCode_Tiempo  = (null == casFeat_Tiempo) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_Tiempo).getCode();

 
    casFeat_Persona = jcas.getRequiredFeatureDE(casType, "Persona", "uima.cas.String", featOkTst);
    casFeatCode_Persona  = (null == casFeat_Persona) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_Persona).getCode();

 
    casFeat_Numero = jcas.getRequiredFeatureDE(casType, "Numero", "uima.cas.String", featOkTst);
    casFeatCode_Numero  = (null == casFeat_Numero) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_Numero).getCode();

 
    casFeat_Genero = jcas.getRequiredFeatureDE(casType, "Genero", "uima.cas.String", featOkTst);
    casFeatCode_Genero  = (null == casFeat_Genero) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_Genero).getCode();

  }
}



    